package com.myjob.handlerImpl;

import com.alibaba.fastjson.JSONObject;
import com.myjob.dto.Oauth2TokenDto;
import com.myjob.response.Result;
import com.nimbusds.jwt.JWT;
import org.springframework.stereotype.Component;

import java.security.Principal;
import java.util.Map;

/**
 * @author Chen Yuan
 * @create 2021-03-24  10:14
 */
@Component
public class AuthHandlerHystrix implements AuthHandler {

	@Override
	public String getToken(Principal principal, Map<String, String> parameters) {
		return JSONObject.toJSONString(Result.failed("登录异常,请刷新并重试"));
	}
}
